#ifndef PINGDELAY_HPP
#define PINGDELAY_HPP

#include <QThread>
#include <QMutex>
#include <QMutexLocker>

class PingDelay : public QThread
{
    Q_OBJECT
public:
    explicit PingDelay(QObject *parent = 0);
    void stop();

protected:
    void setIsRunning(bool state);
    bool getIsRunning();

private:
    bool m_isRunning;
    QMutex m_mutex;
};

#endif // PINGDELAY_HPP
